package com.hardydou.system.mapper;

import com.hardydou.system.model.SystemUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SystemUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(SystemUser record);

    int insertSelective(SystemUser record);

    SystemUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SystemUser record);

    int updateByPrimaryKey(SystemUser record);

    List<SystemUser> findAll(Map<String, Object> params);

    SystemUser findByUsername(String username);

    List<Map> simpleInfo(@Param("uids") List<Long> uids);

}